package cn.enited.devtools.apiaggregator.api.utils;


import java.util.Objects;

@FunctionalInterface
public interface TripletConsumer<T, U, R> {

    void accept(T t, U u, R r);

    default TripletConsumer<T, U, R> andThen(TripletConsumer<? super T, ? super U, ? super R> after) {
        Objects.requireNonNull(after);

        return (f, s, t) -> {
            accept(f, s, t);
            after.accept(f, s, t);
        };
    }
}
